package com.glory.wxelectricitypda.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;



public class FTPittedSubmitBean{


    private Boolean CANFLIPNEXTPAGE;
    private List<LOTLISTDTO> LOTLIST;

    private String TRACKSHOWMSG;


    private Boolean RELLYSUBMIT;

    public Boolean getRELLYSUBMIT() {
        return RELLYSUBMIT;
    }

    public void setRELLYSUBMIT(Boolean RELLYSUBMIT) {
        this.RELLYSUBMIT = RELLYSUBMIT;
    }

    public String getTRACKSHOWMSG() {
        return TRACKSHOWMSG == null ? "" : TRACKSHOWMSG;
    }

    public void setTRACKSHOWMSG(String TRACKSHOWMSG) {
        this.TRACKSHOWMSG = TRACKSHOWMSG;
    }

    public Boolean getCANFLIPNEXTPAGE() {
        return CANFLIPNEXTPAGE;
    }

    public void setCANFLIPNEXTPAGE(Boolean CANFLIPNEXTPAGE) {
        this.CANFLIPNEXTPAGE = CANFLIPNEXTPAGE;
    }

    public List<LOTLISTDTO> getLOTLIST() {
        if (LOTLIST == null) {
            return new ArrayList<>();
        }
        return LOTLIST;
    }

    public void setLOTLIST(List<LOTLISTDTO> LOTLIST) {
        this.LOTLIST = LOTLIST;
    }



    public static class LOTLISTDTO implements Parcelable{
        private String LOTID;
        private int OBJECTRRN;
        private int MAINQTY;

        protected LOTLISTDTO(Parcel in) {
            LOTID = in.readString();
            OBJECTRRN = in.readInt();
            MAINQTY = in.readInt();
        }

        public static final Creator<LOTLISTDTO> CREATOR = new Creator<LOTLISTDTO>() {
            @Override
            public LOTLISTDTO createFromParcel(Parcel in) {
                return new LOTLISTDTO(in);
            }

            @Override
            public LOTLISTDTO[] newArray(int size) {
                return new LOTLISTDTO[size];
            }
        };

        public int getMAINQTY() {
            return MAINQTY;
        }

        public void setMAINQTY(int MAINQTY) {
            this.MAINQTY = MAINQTY;
        }

        public int getOBJECTRRN() {
            return OBJECTRRN;
        }

        public void setOBJECTRRN(int OBJECTRRN) {
            this.OBJECTRRN = OBJECTRRN;
        }

        public String getLOTID() {
            return LOTID == null ? "" : LOTID;
        }

        public void setLOTID(String LOTID) {
            this.LOTID = LOTID;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeString(LOTID);
            parcel.writeInt(OBJECTRRN);
            parcel.writeInt(MAINQTY);
        }
    }
}
